//package com.qifenqian.turbot.deprecated.presenter
//
//import android.content.Context
//import com.qifenqian.turbot.base.BasePresenter
//import com.qifenqian.turbot.deprecated.contract.LoginContract
//import com.qifenqian.turbot.module.entity.response.LoginEntity
//import com.qifenqian.turbot.deprecated.model.LoginModel
//import com.qifenqian.turbot.net.ModelCallback
//
///**
// * @author H
// * @createTime 2018/12/14 11:11
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountPresenter")
//class LoginPresenter(context: Context, view: LoginContract.View) : BasePresenter<LoginContract.View, LoginModel>(context, view), LoginContract.Presenter {
//
//
//    override fun createModel(): LoginModel {
//        return LoginModel(mContext)
//    }
//
//    override fun sendSmsCode(type: Int) {
//        mModel.sendSmsCode(type, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.getCodeSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
//                mView!!.getCodeFailure(code, msg!!)
//            }
//        })
//    }
//
//    override fun login(userCode: String, password: String, loginType: Int, smsCode: String) {
//        mModel.login(userCode, password, loginType, smsCode, object : ModelCallback<LoginEntity> {
//            override fun onSuccess(msg: String?, t: LoginEntity?) {
//                mView!!.loginSuccess(t!!)
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
//                mView!!.loginFailure(code, msg)
//            }
//        })
//    }
//}
